#!/bin/bash
cp /home/ruicheng/docs/shell/smart-community/docker-compose.yml /home/ruicheng/workspace/smart-community/
cd $1
name="$2"
echo "name=$name"
docker-compose stop $name
docker-compose rm -f $name
docker image rm "docker_$name"
docker-compose up --build -d $name
docker system prune -f
